package fr.utbm.lo54.domain;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaActiveRecord
public class Course {

    @NotNull
    @Size(min = 2, max = 25)
    private String code;

    @NotNull
    @Size(min = 2, max = 25)
    private String title;
    
    @Override
    public String toString() {
    	return code;
    }
}
